import {
    get,
    post
} from '../utils/request.js';

/* 规则 */
export const addRule = (params) => post('/b/rules/ruledict/addRuleDict', params);
export const getRule = (params) => post('/b/rules/ruledict/dictRuleGrid', params);
export const upRule = (params) => post('/b/rules/ruledict/upRuleDict', params);
export const delRule = (params) => post('/b/rules/ruledict/delRuleDict', params);

/* 规则字段 */
export const addRField = (params) => post('/b/rules/rulefield/addRuleField', params);
export const getRField = (params) => post('/b/rules/rulefield/ruleFieldGrid', params);
export const upRField = (params) => post('/b/rules/rulefield/upRuleField', params);
export const delRField = (params) => post('/b/rules/rulefield/delRuleField', params);
